package com.gxgeek.userserver.service.impl;

import com.gxgeek.userserver.dataobject.UserInfo;
import com.gxgeek.userserver.repostory.UserInfoRepostory;
import com.gxgeek.userserver.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author gaoxing
 * @create 2018-04-02 下午1:40
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserInfoRepostory userInfoRepostory;
    @Override
    public UserInfo findByOpenId(String openId) {
        return userInfoRepostory.findByOpenid(openId);
    }
}
